package OOday02;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/7 16:15
 */
public class InterfaceDemo {
    public static void main(String[] args) {
        //Inter o=new Inter();错误写法，接口不能实例化
    }
    interface Inter{//默认内部全是抽象方法
        abstract void show();
        void  www();
    }
    //演示接口实现
    class InterImpl implements Inter{//关键字 implements
        public void show(){//重写抽象方法必须加public


        }
        public void www(){

        }
    }
    interface inter1{
        void aa();
    }
    interface inter2{
        void bb();
    }
    abstract class Eoo{
        abstract void say();
    }

    class Foo extends Eoo implements inter1,inter2{
        public void aa(){

        }
        public void bb(){

        }
        void say(){

        }
    }

    //接口继承接口
    interface inter3{
        void aa();
    }
    interface inter4 extends inter3 {
        void bb();
    }
    class Goo implements inter4{
        public void aa(){

        }
        public void bb(){

        }
    }













}
